<!--这是一个菜单组件-->
<template>
  <div class="m-menu">
    <div>我的一个菜单测试</div>
    <div v-for="item in menulist"
         :key="item.id">
      <span class="m-m1">{{item.name}}</span>
    </div>
  </div>
</template>

<script>
import softUtil from '@/assets/js/util.js'
export default {
  name: 'cmenu',
  data () {
    return {
      menulist: [
        { id: 1, name: '功能模块一' },
        { id: 2, name: '功能模块二' },
        { id: 3, name: '功能模块三' },
      ]
    }
  },
  mounted () {

  },
  methods: {
    buildSoft () {
      softUtil.addExt(soft);
      this.foo()
    }
  }
}
</script>
